<?php echo $this->Html->script(array('jquery.livequery.js','home.js'),array('inline' => false));?>
<?php //echo $this->Html->css(array(),NULL, array('inline' => false));?>
<div id="Banner">
	<div class="viewCityHead">
		<ul id="hori_nav">
			<li class="active" title="Rao vặt tại Hà Nội"><a href="/Home/index"
				title="Rao vặt tại Hà Nội">All</a> <span class="left"></span> <span
				class="right"></span>
			</li>
			<li class="active" title="Rao vặt tại Hà Nội"><a href="/Online/index"
				title="Rao vặt tại Hà Nội">Online</a> <span class="left"></span> <span
				class="right"></span>  <span class="arrBottom">&nbsp;</span>
			</li>
			<li class="active" title="Rao vặt tại Hà Nội"><a href="#"
				title="Rao vặt tại Hà Nội">Save</a> <span class="left"></span> <span
				class="right"></span>
			</li>
		</ul>
	</div>
</div>
<div id="Banner">
	<div class="viewCityHead">
		<ul id="hori_nav">
			<li class="active" title="Rao vặt tại Hà Nội"><a href="#"
				title="Rao vặt tại Hà Nội">Category</a> <span class="left"></span> <span
				class="right"></span> <span class="arrBottom">&nbsp;</span>
			</li>
		</ul>
	</div>
</div>
<div id="RequestBar">
	<div style="float: left; width: 100%; padding-top: 5px; *padding-top: 15px">
		<div id="BarConditions" style="display: block">
			<div id="content-bar" style="display: block">
			<?php  foreach ($arrCategory as $itemCategory){?>
				<div class="item-condition">
					<!-- VinhHQ, 07112012, added new title property -->
					<a href="<?php echo $urlNext; ?>&idCat=<?php echo $itemCategory['Category']['id'] ;?>" title=""><?php echo $itemCategory['Category']['category_name'] ;?></a>
				</div>
				<?php }?>
			</div>
		</div>
	</div>
</div>
<div id="tab">
	<ul <?php if(!empty($userCurrent)){echo 'class="user"';} ?> >
		<li <?php if($cmd == ''){echo 'class="active"';} ?> ><a href="/online/index"><span>Hài lòng</span></a></li>
		<li <?php if($cmd == 'new'){echo 'class="active"';} ?>><a href="/online/index?cmd=new"><span>New</span></a></li>
		<li <?php if($cmd == 'hr'){echo 'class="active"';} ?>><a href="/online/index?cmd=hr"><span>Trả phí theo giờ</span></a></li>
		<li <?php if($cmd == 'turn'){echo 'class="active"';} ?>><a href="/online/index?cmd=turn"><span>Trả phí theo lượt</span></a></li>
		<li <?php if($cmd == 'free'){echo 'class="active"';} ?>><a href="/online/index?cmd=free"><span>Free</span></a></li>
		<li class="<?php if($cmd == 'save'){echo 'active';} ?> end"><a href="/online/index?cmd=save"><span>Save</span></a></li>
	</ul>
</div>
<div id="content">
    <div class="category-block viewForm">
    <?php if(!empty($arrDataUserReturn)){
        foreach($arrDataUserReturn AS $itemUser){
    ?>
        <div class="item-categ clearfix">
            <p class="bottom imgs"><a href="<?php echo $itemUser['link']; ?>"><img width="145" height="145" alt="Avatar" src="<?php echo $itemUser['avatar']; ?>" /></a></p>
            <div class="desc-item">
                <h4><a href="<?php echo $itemUser['link']; ?>"><?php echo $itemUser['full_name']; ?></a></h4>
                <p class="desc-text clearfix"> 
                    <?php foreach($itemUser['star_class'] AS $itemStar){?> 
                    <span class="<?php echo $itemStar; ?>">&nbsp;</span>
                    <?php } ?>
                    <span class="detail-star">
                        <b class="link-price"><?php echo $itemUser['total_vote']; ?></b> Bình chọn
                        <b class="link-price"><?php echo $itemUser['total_comment']; ?></b> Comment
                        <b class="link-price"><?php echo $itemUser['total_save']; ?></b> Save
                    </span>
    			</p>
                <div class="box-auction clearfix">
                    <span class="track_230" style=""><a title="Call" href="javascript:;" class="savethis" onclick="trackItem(230,364);" ondblclick="trackItem(230,364);"></a></span> 
                    <span class="timeleft">
                        <?php
                        if(!empty($itemUser['list_cat'])){
                            foreach($itemUser['list_cat'] AS $itemCat){
                                echo '<span class="category-u">'.$arrCatName[$itemCat].'</span>';
                            }
                        } 
                        ?><br />
                        Là thành viên tư vấn từ ngày <?php echo $itemUser['date_reg_counse']; ?>
                    </span>
                    <span class="checkout"></span>
                </div>
            </div>
        </div>  
    <?php }} ?>                         
    </div>
    <div class="clearfix"></div>
    <?php if($next == 1){ ?>
	<div id="pagenumber">
		<a class="prev ajaxGetMore" rel="2" href="javascript:;">Xem thêm</a>
		<input type="hidden" value="<?php echo $typeFiter; ?>" class="typeFiter" />
        <input type="hidden" value="<?php echo $idCat; ?>" class="idCat" />
		<input type="hidden" value="<?php echo $baseUrl; ?>" class="baseUrl" />
	</div>
    <?php } ?>
</div>